package com.example.eeuse;

import cn.hutool.http.HttpUtil;

import java.util.concurrent.Callable;

public class ReqCall implements Callable<String> {
    private int id;
    public ReqCall(int id)
    {
        this.id=id;
    }
    @Override
    public String call() throws Exception {
        return HttpUtil.get("http://localhost:8081/detail?id="+id);
    }
}
